import rclpy
from rclpy.node import Node
from rclpy.qos import QoSProfile
from std_msgs.msg import Float32

rclpy.init()
node = Node("receiver")
node.create_subscription(
    Float32, "chatter", lambda msg: print(msg.data), QoSProfile(depth=10)
)
rclpy.spin(node)
